package com.little.pattern.stratety;

import com.little.pattern.stratety.behavior.FlyNoWay;
import com.little.pattern.stratety.behavior.Squeak;

/**
 * 橡皮鸭
 * Created by littleshu on 18/5/1.
 */
public class RubberDuck extends Duck {
    public RubberDuck() {
        this.flyBehavior = new FlyNoWay();
        this.quackBehavior = new Squeak();
    }

    @Override
    public void display() {
        System.out.println("橡皮鸭");
    }
}
